﻿namespace HiMap.Carto
{
    using HiMap.CoordinateSystem;
    using HiMap.Geometry;
    using System;

    public class SpatialFilterClass : QueryFilterClass, ISpatialFilter, IQueryFilter
    {
        protected internal double _Buffer;
        protected ICoordinateSystem _cd;
        protected internal IGeometry _Geometry;
        protected internal QueryType _QType;

        public SpatialFilterClass()
        {
            base._Type = FilterType.SpatialFilter;
            base._WhereClause = null;
            this._Geometry = null;
            this._Buffer = 0;
            this._QType = QueryType.Pixel;
            this._cd = null;
        }

        double ISpatialFilter.Buffer
        {
            get
            {
                return this._Buffer;
            }
            set
            {
                this._Buffer = value;
            }
        }

        ICoordinateSystem ISpatialFilter.cd
        {
            get
            {
                return this._cd;
            }
            set
            {
                this._cd = value;
            }
        }

        IGeometry ISpatialFilter.Geometry
        {
            get
            {
                return this._Geometry;
            }
            set
            {
                this._Geometry = value;
            }
        }

        QueryType ISpatialFilter.QType
        {
            get
            {
                return this._QType;
            }
            set
            {
                this._QType = value;
            }
        }
    }
}

